package heritage.joined;

import java.io.Serializable;

import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Inheritance;
import javax.persistence.InheritanceType;

@Entity
@Inheritance(strategy = InheritanceType.JOINED)
public abstract class Vehicule implements Serializable {

	private static final long serialVersionUID = -2110771633365274265L;

	@Id
	protected String codeVehicule;
	protected String immatriculation;
	protected String nom;
	
	public Vehicule() {
	}

	public Vehicule(String codeVehicule, String immatriculation, String nom) {
		this.codeVehicule = codeVehicule;
		this.immatriculation = immatriculation;
		this.nom = nom;
	}

	public String getCodeVehicule() {
		return codeVehicule;
	}

	public String getImmatriculation() {
		return immatriculation;
	}

	public String getNom() {
		return nom;
	}

	public void setCodeVehicule(String codeVehicule) {
		this.codeVehicule = codeVehicule;
	}

	public void setImmatriculation(String immatriculation) {
		this.immatriculation = immatriculation;
	}

	public void setNom(String nom) {
		this.nom = nom;
	}
}
